
<?



function SysSetForm($mydb)
{ 
	$sqlrs="select * from ".$mydb->TableName." where ".$mydb->TableName."0 =".$mydb->ArrFields[0]."";
	
	$rsc=$mydb->db_query($sqlrs);
	$rs=$mydb->db_fetch_array($rsc);
	 
  
 ?>
<form id="form1" name="form1" method="post" action="Index_Save.php?MenuId=<? echo $_REQUEST["MenuId"];?>">
  <p>&nbsp;</p>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" class="TableLine">
    <tr>
      <td colspan="3" height="10"></td>
    </tr>
    <tr>
      <td width="35%"  class="TdLineBG"><div align="right">公司名称：</div></td>
      <td width="54%"  class="TdLine"><label>
        <input name="SysSet1" type="text" value="<? echo $rs[1]?>" size="50"  class="InputNone"/>
      </label></td>
      <td width="11%"  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">公司地址：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet2" type="text" value="<? echo $rs[2]?>" size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">联系人：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet3" type="text" value="<? echo $rs[3]?>"  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"> <div align="right">电话：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet4" type="text" value="<? echo $rs[4]?>"  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">传真：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet5" type="text" value="<? echo $rs[5]?>"  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">网址：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet6" type="text" value="<? echo $rs[6]?> "  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">Email：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet7" type="text" value="<? echo $rs[7]?>"  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">公司邮局：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet8" type="text" value="<? echo $rs[8]?>"  size="50"   class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">邮编：</div></td>
      <td  class="TdLine"><label>
      <input name="SysSet9" type="text" value="<? echo $rs[9]?>"    class="InputNone"/>
      </label></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td  class="TdLineBG"><div align="right">ICP号：</div></td>
      <td  class="TdLine"><input name="SysSet10" type="text" value="<? echo $rs[10]?>"  size="50"   class="InputNone"/></td>
      <td  class="TdLine">&nbsp;</td>
    </tr>
    <tr>
      <td height="30">&nbsp;</td>
      <td valign="bottom"><input type="image" name="sumbit" src="../../Iamges/botton_baocun.png" /></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
<?   
}


function SysSetSave($mydb)
{
	$SysSetFields=array();
	for($i=1;$i<=10;$i++)
	{
		$SysSetFields[$i]=$_REQUEST["SysSet".$i];
	}
	$SysSetFields[0]=1;
	$mydb->TableName="SysSet";
	$mydb->ArrFields=$SysSetFields;
	$mydb->UpDate();
}
?>